package com.jg.utils.String;

import org.junit.jupiter.api.Test;

public class StringUtil {

    @Test
    public void test(){
        String id = "522601196701123001";
        String ids = "[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$|^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)";

        System.out.println(id.matches(ids));

    }

}
